import request from '@/utils/request'

// 查询学科专业统计列表
export function listSubject_tree(query) {
  return request({
    url: '/DataManage/subject_tree/list',
    method: 'get',
    params: query
  })
}

// 查询学科专业统计详细
export function getSubject_tree(id) {
  return request({
    url: '/DataManage/subject_tree/' + id,
    method: 'get'
  })
}

// 新增学科专业统计
export function addSubject_tree(data) {
  return request({
    url: '/DataManage/subject_tree',
    method: 'post',
    data: data
  })
}

// 修改学科专业统计
export function updateSubject_tree(data) {
  return request({
    url: '/DataManage/subject_tree',
    method: 'put',
    data: data
  })
}

// 删除学科专业统计
export function delSubject_tree(id) {
  return request({
    url: '/DataManage/subject_tree/' + id,
    method: 'delete'
  })
}

//学校数据列表查询
export function universityList (data) {
  return request({
    url: `/DataManage/subject_tree/universitylist`,
    method: 'get',
    data: data
  })
}

//学校门类数据列表查询
export function categoryList (universityId) {
  return request({
    url: `/DataManage/subject_tree/categorylist/` + universityId,
    method: 'get'
  })
}
